package com.sanshui.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Emoji {
    /**
     * 图片id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 图片名字
     */
    private String name;
    /**
     * 图片路径
     */
    private String url;
    /**
     * 图片是否被删除
     */
    @TableLogic
    private String isDelete;
    /**
     * 图片上传时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date uploadTime;


}
